package com.tc.jpa.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.stereotype.Component;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * @Auther: tianchao
 * @Date: 2021/11/13 16:14
 * @Description:
 */
@Slf4j
@Component
public class MyServletContextInitializer implements ServletContextInitializer {
    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        log.info("MyServletContextInitializer: {}", servletContext);
    }
}
